package com.egao.common.module.company.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author lym
 * @date 2023/3/8 11:34
 */
@Data
@ApiModel(description = "单位问卷")
@TableName("company_questionnaire")
public class CompanyQuestionnaire implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户ID")
    private Integer userId;

    @ApiModelProperty("单位ID")
    private Integer companyId;

    @ApiModelProperty("问卷标识 用来识别是否是同一批问卷 格式yyyyMM")
    private String mark;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("部门")
    private String department;

    @ApiModelProperty("职务")
    private String job;

    @ApiModelProperty("问卷标题")
    private String title;

    @ApiModelProperty("添加时间")
    private Date createTime;

    @ApiModelProperty("编辑时间")
    private Date updateTime;

    @ApiModelProperty("逻辑删除 0正常 1删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("单位问卷选项")
    @TableField(exist = false)
    private List<CompanyQuestionnaireOption> optionList;
}
